﻿<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="MyFloridaHouse.libSvOpenDistricts.Dialogs.PrefCustomizeCriteriaDlgView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400"
    Visibility="{Binding isDlgActive, Converter={StaticResource ConvertBoolToVisibility}}"
    Width="500" Height="220"
             >


    <UserControl.Resources>
        <!-- 
            NOTE: All dictionaries are picked up in the App.xaml, including styles here allows us to see the effects in the Visual Studio Designer
            NOTE: The converter staticResources will show up here as "Could not be resolved", but they will be picked up from App.xaml at runtime
        -->
        <ResourceDictionary Source="/libSvCommonUtilities;component/Resources/Styles.xaml"/>
    </UserControl.Resources>
    <!---->
    <Border Margin="0"  CornerRadius="20" BorderBrush="#FF549D9D"  BorderThickness="2"  
            Background="{StaticResource DialogBackgroundBrush}"
            >

        <StackPanel>
            <Grid Margin="15">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <sdk:Label Grid.Row="0" Grid.ColumnSpan="3" Content="Customize Data" Style="{StaticResource lblMessageStyle}"/>
                
                <sdk:Label Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" Content="Customize Data Grid:" Style="{StaticResource PlanNewLabelStyle}"></sdk:Label>
                <ComboBox Grid.Row="1" Grid.Column="1"   Height="20" ItemsSource="{Binding criteriaDatasetNameList}" SelectedIndex="{Binding gridCriteriaDatasetNameListSelectedIndex, Mode=TwoWay}" Tag="{Binding}"  />


                <sdk:Label Grid.Row="2"  HorizontalAlignment="Right" Content="Customize 'Show Numbers':" Style="{StaticResource PlanNewLabelStyle}"></sdk:Label>
                <ComboBox Grid.Row="2" Grid.Column="1"   Height="20" ItemsSource="{Binding criteriaDatasetNameList}" SelectedIndex="{Binding labelCriteriaDatasetNameListSelectedIndex, Mode=TwoWay}" Tag="{Binding}"  />

                <sdk:Label Grid.Row="3"  HorizontalAlignment="Right" Content="Customize 'Show Concentration':" Style="{StaticResource PlanNewLabelStyle}"></sdk:Label>
                <ComboBox Grid.Row="3" Grid.Column="1"   Height="20" ItemsSource="{Binding criteriaDatasetNameList}" SelectedIndex="{Binding fillCriteriaDatasetNameListSelectedIndex, Mode=TwoWay}" Tag="{Binding}"  />

            </Grid>

            <StackPanel  Orientation="Horizontal" HorizontalAlignment="Right" Margin="15">
                <Button x:Name="CancelButton" Content="Cancel" Command="{Binding CmdCancel}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0"  />
                <Button x:Name="OKButton" Content="Apply" Command="{Binding CmdOK}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0"  />
            </StackPanel>                    
        </StackPanel>
    </Border>
</UserControl>
